package deng.qiya.model;

import java.util.Date;

import org.apache.commons.lang.time.DateUtils;

import deng.qiya.util.MyDateTimeUtils;
import deng.qiya.wechat.Constant;


public class HotelRoomInputParms {

	/**
	 * <HotelRoomInputParms><sHotelCds>021040</sHotelCds><dtStart>2012-12-29</dtStart><dtEnd>2012-12-30</dtEnd>
	 * <flgMember>true</flgMember>
	 * <sGustCd>1018</sGustCd><sMid></sMid>
	 * <sLisence>800333</sLisence></HotelRoomInputParms>
	 */
	private String sHotelCds;
	private String dtStart;
	private String dtEnd;
	private String flgMember;
	private String sGustCd;
	private String sLisence;
	
	public HotelRoomInputParms (){};
	
	public HotelRoomInputParms (String hotelcd,boolean def){
		if(def){
			this.sHotelCds = hotelcd;
			this.dtStart = MyDateTimeUtils.getDateString(new Date());
			this.dtEnd = MyDateTimeUtils.getDateString(DateUtils.addDays(new Date(), 1));
			this.flgMember = "true";
			this.sGustCd = "1018";
			this.sLisence = Constant.HOMEINNS_LICENSE;
		}

	};
	
	public HotelRoomInputParms (String hotelcd,String cardType,boolean def){
		if(def){
			this.sHotelCds = hotelcd;
			this.dtStart = MyDateTimeUtils.getDateString(new Date());
			this.dtEnd = MyDateTimeUtils.getDateString(DateUtils.addDays(new Date(), 1));
			this.flgMember = "true";
			this.sGustCd = cardType;
			this.sLisence = Constant.HOMEINNS_LICENSE;
		}

	};
	
	public String getsHotelCds() {
		return sHotelCds;
	}
	public void setsHotelCds(String sHotelCds) {
		this.sHotelCds = sHotelCds;
	}
	public String getFlgMember() {
		return flgMember;
	}
	public void setFlgMember(String flgMember) {
		this.flgMember = flgMember;
	}
	public String getsGustCd() {
		return sGustCd;
	}
	public void setsGustCd(String sGustCd) {
		this.sGustCd = sGustCd;
	}
	public String getsLisence() {
		return sLisence;
	}
	public void setsLisence(String sLisence) {
		this.sLisence = sLisence;
	}

	public String getDtStart() {
		return dtStart;
	}

	public void setDtStart(String dtStart) {
		this.dtStart = dtStart;
	}

	public String getDtEnd() {
		return dtEnd;
	}

	public void setDtEnd(String dtEnd) {
		this.dtEnd = dtEnd;
	}

	
}
